public class GxClientFilterSetFilterModel
extends GxClientFilterAbstractModel
The filter model represents the enhanced filter type "setFilter"
Modifier and Type | Field and Description |
---|---|
JsonArray | Values! The values to display in the filter. If this is not set, then the filter will takes its values from what is loaded in the table. Setting it allows you to set values where the value may not be present in the list for example, if you want to show all states in America so that the user is not confused by missing states, even though states are missing from the data set in the grid |
Constructor and Description |
---|
GxClientFilterSetFilterModel(JsonArray values!) Construct new GxClientFilterSetFilterModel |
Modifier and Type | Method and Description |
---|---|
void | clearFilter() Clear the filter |
BBjString | execute(BBjNumber send!) Tell the grid to refresh rows based on the filter. the filter does not do this automatically in case multiple filters are going to get set. |
JsonObject | getAsJsonObject() {@inheritDoc} |
BBjString | getMiniFilter() Get the mini filter value. Note that if the grid is not ready , then this method will always return an empty string
even if you have called
|
void | selectEverything() Select all values generated by the UI
|
void | selectNothing() Clears the selection
|
void | selectValue(BBjString value!) Selects a value
|
void | selectValue(BBjNumber value!) Selects a value
|
void | setFilterValues(JsonArray values!) Change on the fly the available options
|
void | setMiniFilter(BBjString miniFilter!) Sets the filter at the top of the filter (the 'quick search' in the popup)
|
void | setMiniFilter(BBjNumber miniFilter!) Sets the filter at the top of the filter (the 'quick search' in the popup)
|
BBjNumber | supportsCombinedModel() {@inheritDoc} |
void | unselectValue(BBjString value!) Unselects a value
|
void | unselectValue(BBjNumber value!) Unselects a value
|
public JsonArray Values!
The values to display in the filter. If this is not set, then the filter will takes its values from what is loaded in the table. Setting it allows you to set values where the value may not be present in the list for example, if you want to show all states in America so that the user is not confused by missing states, even though states are missing from the data set in the grid
public GxClientFilterSetFilterModel(JsonArray values!)
Construct new GxClientFilterSetFilterModel
JsonArray
values! The values to display in the filterpublic void clearFilter()
Clear the filter
public BBjString execute(BBjNumber send!)
Tell the grid to refresh rows based on the filter. the filter does not do this automatically in case multiple filters are going to get set.
BBjNumber
send! when true the execution code will executed on the client , false otherwise 256 when the column or the widget are not defined
public JsonObject getAsJsonObject()
public BBjString getMiniFilter()
Get the mini filter value.
Note that if the grid is not ready , then this method will always return an empty string
even if you have called setMiniFilter
before.
#API
256 when the column or the widget are not defined
public void selectEverything()
Select all values generated by the UI
#API
public void selectNothing()
Clears the selection
#API
public void selectValue(BBjString value!)
Selects a value
#API
BBjString
value! the value to select 256 when the column or the widget are not defined
public void selectValue(BBjNumber value!)
Selects a value
#API
BBjNumber
value! the value to select 256 when the column or the widget are not defined
public void setFilterValues(JsonArray values!)
Change on the fly the available options
#API
JsonArray
values! array of values 256 when the column or the widget are not defined
public void setMiniFilter(BBjString miniFilter!)
Sets the filter at the top of the filter (the 'quick search' in the popup)
#API
BBjString
miniFilter 256 when the column or the widget are not defined
public void setMiniFilter(BBjNumber miniFilter!)
Sets the filter at the top of the filter (the 'quick search' in the popup)
#API
BBjNumber
miniFilter 256 when the column or the widget are not defined
public BBjNumber supportsCombinedModel()
public void unselectValue(BBjString value!)
Unselects a value
#API
BBjString
value! the value to unselect 256 when the column or the widget are not defined
public void unselectValue(BBjNumber value!)
Unselects a value
#API
BBjNumber
value! the value to unselect 256 when the column or the widget are not defined